package com.example.train.infra.repository.impl;

import com.example.train.domain.entity.Job;
import com.example.train.domain.repository.JobRepository;
import com.example.train.infra.mapper.JobMapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author: chundong.huang@hand-china.com
 * @Date: 2023/3/25 15:36
 */
@Component
public class JobRepositoryImpl implements JobRepository {
    private final JobMapper jobMapper;

    public JobRepositoryImpl(JobMapper jobMapper) {
        this.jobMapper = jobMapper;
    }

    @Override
    public List<Job> list(String id) {
        return jobMapper.list(id);
    }


    @Override
    public int update(Job job) {
        return 0;
    }
}
